package com.framework.common.listener.impl;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import com.framework.common.listener.IBaseEntityUpdate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;

@MappedSuperclass
public class BaseEntityUpdate extends BaseEntityCreate implements IBaseEntityUpdate, Serializable {
    @Column(name = "updater_id",length = 32,
            columnDefinition = "varchar(32) COMMENT '更新人ID'"
    )
    @LastModifiedBy
    protected String updaterId;

    @Column(name = "update_time",
            columnDefinition = "datetime COMMENT '更新时间'"
    )
    @LastModifiedDate
    protected Date updateTime;



    public String getUpdaterId() {
        return this.updaterId;
    }

    public void setUpdaterId(String updaterId) {
        this.updaterId = updaterId;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}